package com.gopay.common.cps.dao.order;

import com.gopay.common.base.dao.BaseReadDAO;
import com.gopay.common.domain.cps.CpsGenReceiptOrder;
import com.gopay.common.domain.fund.FundGopayCpsGenOrder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface CpsGeneralFundOrderQueryDAO extends BaseReadDAO<FundGopayCpsGenOrder, Serializable> {
    /**
     * 根据日期,订单类型,及订单状态查询从订单
     * @param start
     * @param end
     * @param type
     * @param ordertpey
     * @return
     * @throws SQLException
     */
    @Deprecated
    List<FundGopayCpsGenOrder> findOrder(String start, String end, String[] type,String ordertpey);

    /**
     * 根据日期,订单类型,及订单状态查询从订单
     * @param start
     * @param end
     * @param type
     * @param ordertpey
     * @return
     * @throws SQLException
     */
    @Deprecated
    List<FundGopayCpsGenOrder> findOrder(String start, String end, String[] type, String ordertpey, String custId);

    /**
     * add by jianghoupeng 20171221
     *  根据国付宝订单号查找订单
     * @param gopayOrderId
     * @return
     */
    FundGopayCpsGenOrder findByGopayOrderId(String gopayOrderId);
}
